package com.runfast.paotui.dao.mapper;


import com.runfast.paotui.dao.model.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by cz on 2018/7/16.
 */
@Mapper
public interface PaoTuiIndexDataMapper {
    List<Map<String, Object>> orderDaily(@Param("id") Integer id, @Param("start") Date start, @Param("end") Date end, @Param("types") List<Integer> types);

    List<Map<String, Object>> hourlySumIndex(@Param("id") Integer id, @Param("start") Date start, @Param("end") Date end);

    List<Map<String, Object>> pie1(@Param("id") Integer id, @Param("start") Date start, @Param("end") Date end);

    List<Map<String, Object>> pie2(@Param("id") Integer id, @Param("start") Date start, @Param("end") Date end);

    Map<String, Object> index(@Param("id") Integer id, @Param("start") Date start, @Param("end") Date end);



    /*自己写的 */
    Map<String, Object> yesterdayData(@Param("id") Integer id);

}
